Skip to content

feat: add helpful info to internal AssertionError excs #19404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 9, 2025

Conversation

BobTheBuidler
Copy link
Contributor

I added some contextual information to various assert statements throughout the repo.

This information is helpful for me while debugging Issue 1116 and should be similarly useful in many other debugging contexts.

Copy link
Contributor

github-actions bot commented Jul 8, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link

@blockchainGuru1018 blockchainGuru1018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BobTheBuidler, reviewed and approved this PR

@BobTheBuidler
Copy link
Contributor Author

Thank you!

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, this should make it easier to investigate internal errors.

@JukkaL JukkaL merged commit a79e85e into python:master Jul 9, 2025
19 checks passed
@BobTheBuidler BobTheBuidler deleted the assertion-err-info branch July 9, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants